pkgname=rdma-pyverbs
pkgver=git
pkgrel=1
url='https://gitee.com/ssri-mirrors/rdma-core'
arch=('i386' 'x86_64')
license=('GPLv2')
makedepends_debian_11=(build-essential cmake gcc libudev-dev libnl-3-dev libnl-route-3-dev ninja-build pkg-config valgrind cython3 python3-docutils pandoc)
source=('https://gitee.com/ssri-mirrors/rdma-core.git')
md5sums=('SKIP')

build()
{
	local pyverbs="/lkp/benchmarks/${pkgname}"
	cd $srcdir/rdma-core
	mkdir -p /lkp/benchmarks || return
	mv $srcdir/rdma-core $pyverbs
	cd $pyverbs
	./build.sh
}

package()
{
	local pyverbs="/lkp/benchmarks/${pkgname}"
	local benchmark_path="${pkgdir}/lkp/benchmarks/${pkgname}"

	mkdir -p $benchmark_path
	cp -af $pyverbs/* $benchmark_path
}
